package animal;

public class Dog extends Animal implements Trainable, Swimmable {
    private String breed;

    public Dog(String name, int age, String breed) {
        super(name, age);
        this.breed = breed;
    }

    @Override
    public void makeSound() {
        System.out.println(name + " says: Woof woof!");
    }

    @Override
    public void train() {
        System.out.println(name + " is being trained to fetch.");
    }

    @Override
    public void swim() {
        System.out.println(name + " is swimming in the pool.");
    }

    public String getBreed() {
        return breed;
    }
}
